import { IPoint } from "./IPoint";

export interface IDiagram {
    scheme: Array<IConnector>,
    location: Array<ILocation>,
    lines: Array<IDiagramLine>
}

export interface IConnector {
    name: string,
    connector: string,
    desc: string
}

export interface ILocation {
    name: string,
    point: IPoint
}

export interface IDiagramLine {
    start: string,
    sAnchor: number, // 开始锚点
    end: string,
    eAnchor: number, // 结束锚点
    p1: Array<number>,
    p2?: Array<number>,
    p3?: Array<number>,
    p4: Array<number>,
}

export interface IAnchor {
    name: string,
    anchor: number,
    point?: Array<number>
}